
<div class="span-12">
	<div class="breadcrumb">
		<%= link_to @history.sprint.team.name, @history.sprint.team %>
		>> 
		<%= link_to @history.sprint.goal, @history.sprint %>
		>> 
		<strong>Sprint 2</strong>
	</div>
</div>

<div class="span-12">

	<br />
	<h3>History</h3>

	<div class="history">
	<p class="">
		<%= @history.text %>
		<%= link_to 'edit', {:controller=>'history', :action=>'edit', :id=>@history.id} %>
		<div class="data">
			<span class="business_value"><%= @history.business_value %></span>
			<span class="complexity"><%= @history.complexity %></span>
			<div class="status">
				&nbsp; <%=@history.status%>	
			</div>
			
		<!--
		BV:<br />
		C:<%= @history.complexity %><br />
		IT:<%= @history.initial_tasks %><br />
		-->
		</div>
	</p>
	</div>
	
	
</div>

<!-- status -->
<div class="span-12 last">
	<table>
		<tr>
			<th>day</th>
			<th>Undone</th>
			<th>Done</th>
		</tr>
		<% @history.task.each do | task | %>
		<tr>
			<td><%= task.day %></td>
			<td><%= task.done %></td>
			<td><%= task.undone %></td>
		</tr>
		<% end %>
	</table>


	<% form_for(@newTask, :url => { :action => "updateTask", :controller => 'history', :id => @history.id }) do |f| %>
	<fieldset class="add_history">
		<label>Day</label><br />
		<%= f.text_field :day %><br />
	  	<label>done</label><br />
		<%= f.text_field :done %><br />
		<label>undone</label><br />
	  	<%= f.text_field :undone %><br />
		<%= f.hidden_field :history_id %><br />
		<%= f.submit "Update" %>
	</fieldset>
	<% end %>
</div>



	<div class="span-12">
		<h3>Impediments</h3>
		<% @history.impediment.each do |impediment| %>
		<table>
			<tr><th>Impediments</th></tr>
		</table>
		<% end %>
		<%= link_to 'add impedment', "/impedment/new?history_id=#{@history.id}"  %>
	</div>


<!-- notes -->

	<div class="span-12 last">
		<h3>Test cases</h3>
		<% @history.test_case.each do |test| %>
		<table>
			<tr><th>Test cases</th></tr>
		</table>
		<% end %>
		<%= link_to 'add test case', "/test_cases/new?history_id=#{@history.id}"  %>
	</div>

<div class="span-24">
	<h3>Notes</h3>
	<table>
		<tr><th>Notes</th></tr>
	</table>
	<% @history.note.each do |note| %>
		<%= note.description %>
	<% end %>
	
	<% form_for(:note, :url => { :action => "update" }) do |f| %>
  	<p>
		<%= label(:note, :description, "Text")%><br />
		<%= f.text_area :description %><br />
		<%= f.submit "add" %>
  	</p>
	<% end %>
	
	
</div>


